//package com.itzhouwei.commerce.thread.core.demo7;
//
//替换掉原先的springboot 线程池代码
//
//@Configuration
//public class AsyncExecuteConfig extends AsyncConfigurerSupport {
//
//    @Bean
//    public ThreadPoolTaskExecutor asyncExecutor() {
//        ThreadPoolTaskExecutor threadPool = new ThreadPoolTaskExecutor();
//        threadPool.setCorePoolSize(3);
//        threadPool.setMaxPoolSize(3);
//        threadPool.setWaitForTasksToCompleteOnShutdown(true);
//        threadPool.setAwaitTerminationSeconds(60 * 15);
//        return threadPool;
//    }
//
//    @Override
//    public Executor getAsyncExecutor() {
//        return asyncExecutor();
//    }
//}